import 'dart:convert';

EvaluationSkillsResult evaluationSkillsResultFromJson(String str) =>
    EvaluationSkillsResult.fromJson(json.decode(str));
String evaluationSkillsResultToJson(EvaluationSkillsResult data) =>
    json.encode(data.toJson());

class EvaluationSkillsResult {
  EvaluationSkillsResult({
    this.status,
    this.message,
    this.result,
  });

  int? status;
  String? message;
  ProficiencySkillsDataTreeResult? result;

  factory EvaluationSkillsResult.fromJson(Map<String, dynamic> json) =>
      EvaluationSkillsResult(
        status: json["status"],
        message: json["message"],
        result: ProficiencySkillsDataTreeResult.fromJson(json["result"]),
      );

  Map<String, dynamic> toJson() => {
        "status": status,
        "message": message,
        "result": result?.toJson(),
      };
}

class ProficiencySkillsDataTreeResult {
  ProficiencySkillsDataTreeResult({
    this.tree,
  });

  List<ProficiencySkillsDataTree>? tree;

  factory ProficiencySkillsDataTreeResult.fromJson(Map<String, dynamic> json) =>
      ProficiencySkillsDataTreeResult(
        tree: List<ProficiencySkillsDataTree>.from(
            json["tree"].map((x) => ProficiencySkillsDataTree.fromJson(x))),
      );

  Map<String, dynamic> toJson() => {
        "tree": List<dynamic>.from(tree!.map((x) => x.toJson())),
      };
}

class ProficiencySkillsDataTree {
  ProficiencySkillsDataTree({
    this.skills,
    this.total,
    this.name,
    this.progress,
    this.id,
  });

  List<ProficiencySkillsDataTree>? skills;
  int? total;
  String? name;
  int? progress;
  String? id;

  factory ProficiencySkillsDataTree.fromJson(Map<String, dynamic> json) =>
      ProficiencySkillsDataTree(
        skills: List<ProficiencySkillsDataTree>.from(
            json["skills"].map((x) => ProficiencySkillsDataTree.fromJson(x))),
        total: json["total"],
        name: json["name"],
        progress: json["progress"],
        id: json["id"],
      );

  Map<String, dynamic> toJson() => {
        "skills": List<dynamic>.from(skills!.map((x) => x.toJson())),
        "total": total,
        "name": name,
        "progress": progress,
        "id": id,
      };
}
